<?php

/**
 * general actions.
 *
 * @package    s-test
 * @subpackage general
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class generalActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $this->forward('default', 'module');
  }
  public function executeStatistics(sfWebRequest $request){

      //Partie personnages
      $this->char = array();
      $this->char["tot"]    = KTDCharacter::getNumberOfCharacters();
      $this->char["last"]   = KTDCharacter::getLastCharacter();
      $this->char["dark"]   = KTDCharacter::getNumberOfCharactersByAlignement("Dark");
      $this->char["neutral"]= KTDCharacter::getNumberOfCharactersByAlignement("Neutral");
      $this->char["hero"]   = KTDCharacter::getNumberOfCharactersByAlignement("Hero");
  
      //Partie joueur
      $this->pl = array();
      $this->pl["tot"]      = sfGuardUser::getNumberOfPlayers();
      $this->pl["last"]     = sfGuardUser::getLastPlayer();
  }
  public function executeReglements(sfWebRequest $request){
      
  }
}
